-- GENERATED SPELL FOR [Scarlet Preserver] --


function spell0_4280(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(13952,pUnit)
pUnit:RegisterEvent('Sorts_4280', 2500, 1)
end

function spell1_4280(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(13953,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4280', 530, 1)
end

function Sorts_4280(pUnit, Event)
local choix_sorts_4280 = math.random(0, 1)
if choix_sorts_4280 == 0 then
pUnit:RegisterEvent('spell0_4280', 1, 1)
end
if choix_sorts_4280 == 1 then
pUnit:RegisterEvent('spell1_4280', 1, 1)
end
end

function mob4280_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4280', math.random(1500, 3000), 1)
end

function mob4280_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4280_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4280_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4280, 1, 'mob4280_Action')
RegisterUnitEvent(4280, 2, 'mob4280_Leave')
RegisterUnitEvent(4280, 3, 'mob4280_Kill')
RegisterUnitEvent(4280, 4, 'mob4280_Die')
